package subject_set.weekly_competition.day10_9;

/**
 * @author haomin
 * @date 2022/10/09 10:22
 **/
public class Num2 {
    class Solution {
        public int[] findArray(int[] pref) {
            int cal = 0;
            for(int i = 0; i < pref.length; ++i){
                pref[i] = pref[i] ^ cal;
                cal ^= pref[i];
            }
            return pref;
        }
    }
}